package org.example.xls.common;

public class BusinessException extends RuntimeException{
    private int code;

    // 带错误码和消息的构造器
    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }

    // 带错误码、消息和原因的构造器
    public BusinessException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    // Getter
    public int getCode() {
        return code;
    }
}
